package com.vichat.user.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-09-22 14:23:36.277
 */
@Entity
@Table(name = "user_sec_role_rel",catalog = "userdb")
public class UserSecRoleRel implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "user_sec_role_rel";

    /**关系ID */
	public static final String ALIAS_REL_ID = "rel_id";
    /**用户ID */
	public static final String ALIAS_UID = "uid";
    /**角色ID */
	public static final String ALIAS_ROID = "roid";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /** */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /** */
	public static final String ALIAS_UPDATE_TIME = "update_time";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "rel_id", unique = true, nullable = false)
    public java.lang.Long relId;
  
 	@Column(name = "uid")
    public java.lang.Long uid;
  
 	@Column(name = "roid")
    public java.lang.Long roid;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  





	public java.lang.Long getRelId() {
		return this.relId;
	}
	
	public void setRelId(java.lang.Long value) {
		this.relId = value;
	}

	public java.lang.Long getUid() {
		return this.uid;
	}
	
	public void setUid(java.lang.Long value) {
		this.uid = value;
	}

	public java.lang.Long getRoid() {
		return this.roid;
	}
	
	public void setRoid(java.lang.Long value) {
		this.roid = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}


	
	public UserSecRoleRel() {
	}
	
	public UserSecRoleRel(boolean qryflag) {
	    if(qryflag){
	    		this.relId = null;
				this.uid = null;
				this.roid = null;
				this.state = null;
				this.createTime = null;
				this.updateTime = null;
			    }
	}


	public UserSecRoleRel(
	    java.lang.Long inRelId,
	    java.lang.Long inUid,
	    java.lang.Long inRoid,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
		java.util.Date inUpdateTime
	 ) {
		super();
				this.relId = inRelId;
				this.uid = inUid;
				this.roid = inRoid;
				this.state = inState;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
			}





}

